<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>BonoboPersist</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="index.html" title="Libbonobo Reference Manual">
<link rel="up" href="persist.html" title="Persistency">
<link rel="prev" href="persist.html" title="Persistency">
<link rel="next" href="libbonobo-bonobo-persist-file.html" title="BonoboPersistFile">
<meta name="generator" content="GTK-Doc V1.15.1 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="persist.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="persist.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">Libbonobo Reference Manual</th>
<td><a accesskey="n" href="libbonobo-bonobo-persist-file.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#libbonobo-bonobo-persist.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#libbonobo-bonobo-persist.description" class="shortcut">Description</a>
                   | 
                  <a href="#libbonobo-bonobo-persist.object-hierarchy" class="shortcut">Object Hierarchy</a>
</td></tr>
</table>
<div class="refentry">
<a name="libbonobo-bonobo-persist"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="libbonobo-bonobo-persist.top_of_page"></a>BonoboPersist</span></h2>
<p>BonoboPersist — Interface for anything that can save / load itself.</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="libbonobo-bonobo-persist.synopsis"></a><h2>Synopsis</h2>
<a name="BonoboPersist"></a><pre class="synopsis">                    <a class="link" href="libbonobo-bonobo-persist.html#BonoboPersist-struct" title="BonoboPersist">BonoboPersist</a>;
                    <a class="link" href="libbonobo-bonobo-persist.html#BonoboPersistClass" title="BonoboPersistClass">BonoboPersistClass</a>;
<span class="returnvalue">Bonobo_Persist_ContentTypeList</span> * <a class="link" href="libbonobo-bonobo-persist.html#bonobo-persist-generate-content-types" title="bonobo_persist_generate_content_types ()">bonobo_persist_generate_content_types</a>
                                                        (<em class="parameter"><code><span class="type">int</span> num</code></em>,
                                                         <em class="parameter"><code>...</code></em>);
<a class="link" href="libbonobo-bonobo-persist.html#BonoboPersist"><span class="returnvalue">BonoboPersist</span></a> *     <a class="link" href="libbonobo-bonobo-persist.html#bonobo-persist-construct" title="bonobo_persist_construct ()">bonobo_persist_construct</a>            (<em class="parameter"><code><a class="link" href="libbonobo-bonobo-persist.html#BonoboPersist"><span class="type">BonoboPersist</span></a> *persist</code></em>,
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *iid</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="libbonobo-bonobo-persist.html#bonobo-persist-set-dirty" title="bonobo_persist_set_dirty ()">bonobo_persist_set_dirty</a>            (<em class="parameter"><code><a class="link" href="libbonobo-bonobo-persist.html#BonoboPersist"><span class="type">BonoboPersist</span></a> *persist</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> dirty</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="libbonobo-bonobo-persist.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
  <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
   +----<a class="link" href="libbonobo-bonobo-object.html#BonoboObject">BonoboObject</a>
         +----BonoboPersist
               +----<a class="link" href="libbonobo-bonobo-persist-stream.html#BonoboPersistStream">BonoboPersistStream</a>
               +----<a class="link" href="libbonobo-bonobo-persist-file.html#BonoboPersistFile">BonoboPersistFile</a>
</pre>
</div>
<div class="refsect1">
<a name="libbonobo-bonobo-persist.description"></a><h2>Description</h2>
<p>
BonoboPersist is an abstract base class that is useless by itself.
It implements some methods to handle content type querying for
use by the derived <a class="link" href="libbonobo-bonobo-persist-stream.html#BonoboPersistStream"><span class="type">BonoboPersistStream</span></a> interface.
</p>
</div>
<div class="refsect1">
<a name="libbonobo-bonobo-persist.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="BonoboPersist-struct"></a><h3>BonoboPersist</h3>
<pre class="programlisting">typedef struct _BonoboPersist BonoboPersist;</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="BonoboPersistClass"></a><h3>BonoboPersistClass</h3>
<pre class="programlisting">typedef struct {
	BonoboObjectClass      parent_class;

	POA_Bonobo_Persist__epv epv;

	Bonobo_Persist_ContentTypeList *
	                      (*get_content_types) (BonoboPersist     *persist,
						    CORBA_Environment *ev);
} BonoboPersistClass;
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="bonobo-persist-generate-content-types"></a><h3>bonobo_persist_generate_content_types ()</h3>
<pre class="programlisting"><span class="returnvalue">Bonobo_Persist_ContentTypeList</span> * bonobo_persist_generate_content_types
                                                        (<em class="parameter"><code><span class="type">int</span> num</code></em>,
                                                         <em class="parameter"><code>...</code></em>);</pre>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>num</code></em> :</span></p></td>
<td>the number of content types specified
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
<td>the content types (as strings)
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> a ContentTypeList containing the given ContentTypes
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="bonobo-persist-construct"></a><h3>bonobo_persist_construct ()</h3>
<pre class="programlisting"><a class="link" href="libbonobo-bonobo-persist.html#BonoboPersist"><span class="returnvalue">BonoboPersist</span></a> *     bonobo_persist_construct            (<em class="parameter"><code><a class="link" href="libbonobo-bonobo-persist.html#BonoboPersist"><span class="type">BonoboPersist</span></a> *persist</code></em>,
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *iid</code></em>);</pre>
<p>
Initializes the BonoboPersist object. You should only use this
method in derived implementations, because a BonoboPersist instance
doesn't make a lot of sense, but the iid private field has to be
set at construction time.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>persist</code></em> :</span></p></td>
<td>A BonoboPersist
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>iid</code></em> :</span></p></td>
<td>OAF IID of the object this interface is aggregated to
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> the <a class="link" href="libbonobo-bonobo-persist.html#BonoboPersist"><span class="type">BonoboPersist</span></a>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="bonobo-persist-set-dirty"></a><h3>bonobo_persist_set_dirty ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                bonobo_persist_set_dirty            (<em class="parameter"><code><a class="link" href="libbonobo-bonobo-persist.html#BonoboPersist"><span class="type">BonoboPersist</span></a> *persist</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> dirty</code></em>);</pre>
<p>
Sets the dirty status of the interface which is reported via
the isDirty method.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>persist</code></em> :</span></p></td>
<td>A BonoboPersist
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>dirty</code></em> :</span></p></td>
<td>A flag indicating the dirty status of this object.
</td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="refsect1">
<a name="libbonobo-bonobo-persist.see-also"></a><h2>See Also</h2>
<p>
<a class="link" href="libbonobo-bonobo-persist-stream.html#BonoboPersistStream"><span class="type">BonoboPersistStream</span></a>, <a class="link" href="libbonobo-bonobo-persist-file.html#BonoboPersistFile"><span class="type">BonoboPersistFile</span></a>
</p>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.15.1</div>
</body>
</html>